package com.smiier.skin.net;

import java.util.ArrayList;

import android.content.Context;
import android.util.Log;
import cn.o.app.io.INoProguard;
import cn.o.app.net.NetTask;

import com.smiier.skin.constant.Constant;
import com.smiier.skin.net.RelationshipGetListTask.RelationshipGetListRequest;
import com.smiier.skin.net.RelationshipGetListTask.RelationshipGetListResponse;
import com.smiier.skin.net.entity.UserWrapper;
import com.smiier.skin.util.GlobalSettings;

public class RelationshipGetListTask extends
		NetTask<RelationshipGetListRequest, RelationshipGetListResponse> {
	public static class RelationshipGetListRequest extends ORequest {
		// 1为会话中 0为关闭会话
		public static int SESSIONING = 1;
		public static int SESSIONED = 0;
		public String token;
		public Long startrsuid;
		public Integer RSUser_Type;
		// public Integer RSSource;
		public String keyword;
		public Integer pagesize;
		public Integer pageIndex;
		public Long RSSource;
		public Integer IS_RSAcceptMSG;
		public String appname = Constant.APP_NAME;
	}

	public static class RelationshipGetListResponse extends OResponse {
		public RelationsipGetListRes Res;
	}

	public static class RelationsipGetListRes implements INoProguard {
		public int Count;
		public ArrayList<UserWrapper> Users;
	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL + GlobalSettings.SERVER_URL_JOIN
				+ "?api=RelationShip.GetList";
		mRequestMethod = METHOD_POST;
	}

}
